package com.bibliotecachancay.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class UsuarioExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UsuarioExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andCodUsuarioIsNull() {
            addCriterion("COD_USUARIO is null");
            return (Criteria) this;
        }

        public Criteria andCodUsuarioIsNotNull() {
            addCriterion("COD_USUARIO is not null");
            return (Criteria) this;
        }

        public Criteria andCodUsuarioEqualTo(Integer value) {
            addCriterion("COD_USUARIO =", value, "codUsuario");
            return (Criteria) this;
        }

        public Criteria andCodUsuarioNotEqualTo(Integer value) {
            addCriterion("COD_USUARIO <>", value, "codUsuario");
            return (Criteria) this;
        }

        public Criteria andCodUsuarioGreaterThan(Integer value) {
            addCriterion("COD_USUARIO >", value, "codUsuario");
            return (Criteria) this;
        }

        public Criteria andCodUsuarioGreaterThanOrEqualTo(Integer value) {
            addCriterion("COD_USUARIO >=", value, "codUsuario");
            return (Criteria) this;
        }

        public Criteria andCodUsuarioLessThan(Integer value) {
            addCriterion("COD_USUARIO <", value, "codUsuario");
            return (Criteria) this;
        }

        public Criteria andCodUsuarioLessThanOrEqualTo(Integer value) {
            addCriterion("COD_USUARIO <=", value, "codUsuario");
            return (Criteria) this;
        }

        public Criteria andCodUsuarioIn(List<Integer> values) {
            addCriterion("COD_USUARIO in", values, "codUsuario");
            return (Criteria) this;
        }

        public Criteria andCodUsuarioNotIn(List<Integer> values) {
            addCriterion("COD_USUARIO not in", values, "codUsuario");
            return (Criteria) this;
        }

        public Criteria andCodUsuarioBetween(Integer value1, Integer value2) {
            addCriterion("COD_USUARIO between", value1, value2, "codUsuario");
            return (Criteria) this;
        }

        public Criteria andCodUsuarioNotBetween(Integer value1, Integer value2) {
            addCriterion("COD_USUARIO not between", value1, value2, "codUsuario");
            return (Criteria) this;
        }

        public Criteria andNomUsuarioIsNull() {
            addCriterion("NOM_USUARIO is null");
            return (Criteria) this;
        }

        public Criteria andNomUsuarioIsNotNull() {
            addCriterion("NOM_USUARIO is not null");
            return (Criteria) this;
        }

        public Criteria andNomUsuarioEqualTo(String value) {
            addCriterion("NOM_USUARIO =", value, "nomUsuario");
            return (Criteria) this;
        }

        public Criteria andNomUsuarioNotEqualTo(String value) {
            addCriterion("NOM_USUARIO <>", value, "nomUsuario");
            return (Criteria) this;
        }

        public Criteria andNomUsuarioGreaterThan(String value) {
            addCriterion("NOM_USUARIO >", value, "nomUsuario");
            return (Criteria) this;
        }

        public Criteria andNomUsuarioGreaterThanOrEqualTo(String value) {
            addCriterion("NOM_USUARIO >=", value, "nomUsuario");
            return (Criteria) this;
        }

        public Criteria andNomUsuarioLessThan(String value) {
            addCriterion("NOM_USUARIO <", value, "nomUsuario");
            return (Criteria) this;
        }

        public Criteria andNomUsuarioLessThanOrEqualTo(String value) {
            addCriterion("NOM_USUARIO <=", value, "nomUsuario");
            return (Criteria) this;
        }

        public Criteria andNomUsuarioLike(String value) {
            addCriterion("NOM_USUARIO like", value, "nomUsuario");
            return (Criteria) this;
        }

        public Criteria andNomUsuarioNotLike(String value) {
            addCriterion("NOM_USUARIO not like", value, "nomUsuario");
            return (Criteria) this;
        }

        public Criteria andNomUsuarioIn(List<String> values) {
            addCriterion("NOM_USUARIO in", values, "nomUsuario");
            return (Criteria) this;
        }

        public Criteria andNomUsuarioNotIn(List<String> values) {
            addCriterion("NOM_USUARIO not in", values, "nomUsuario");
            return (Criteria) this;
        }

        public Criteria andNomUsuarioBetween(String value1, String value2) {
            addCriterion("NOM_USUARIO between", value1, value2, "nomUsuario");
            return (Criteria) this;
        }

        public Criteria andNomUsuarioNotBetween(String value1, String value2) {
            addCriterion("NOM_USUARIO not between", value1, value2, "nomUsuario");
            return (Criteria) this;
        }

        public Criteria andApeMaternoIsNull() {
            addCriterion("APE_MATERNO is null");
            return (Criteria) this;
        }

        public Criteria andApeMaternoIsNotNull() {
            addCriterion("APE_MATERNO is not null");
            return (Criteria) this;
        }

        public Criteria andApeMaternoEqualTo(String value) {
            addCriterion("APE_MATERNO =", value, "apeMaterno");
            return (Criteria) this;
        }

        public Criteria andApeMaternoNotEqualTo(String value) {
            addCriterion("APE_MATERNO <>", value, "apeMaterno");
            return (Criteria) this;
        }

        public Criteria andApeMaternoGreaterThan(String value) {
            addCriterion("APE_MATERNO >", value, "apeMaterno");
            return (Criteria) this;
        }

        public Criteria andApeMaternoGreaterThanOrEqualTo(String value) {
            addCriterion("APE_MATERNO >=", value, "apeMaterno");
            return (Criteria) this;
        }

        public Criteria andApeMaternoLessThan(String value) {
            addCriterion("APE_MATERNO <", value, "apeMaterno");
            return (Criteria) this;
        }

        public Criteria andApeMaternoLessThanOrEqualTo(String value) {
            addCriterion("APE_MATERNO <=", value, "apeMaterno");
            return (Criteria) this;
        }

        public Criteria andApeMaternoLike(String value) {
            addCriterion("APE_MATERNO like", value, "apeMaterno");
            return (Criteria) this;
        }

        public Criteria andApeMaternoNotLike(String value) {
            addCriterion("APE_MATERNO not like", value, "apeMaterno");
            return (Criteria) this;
        }

        public Criteria andApeMaternoIn(List<String> values) {
            addCriterion("APE_MATERNO in", values, "apeMaterno");
            return (Criteria) this;
        }

        public Criteria andApeMaternoNotIn(List<String> values) {
            addCriterion("APE_MATERNO not in", values, "apeMaterno");
            return (Criteria) this;
        }

        public Criteria andApeMaternoBetween(String value1, String value2) {
            addCriterion("APE_MATERNO between", value1, value2, "apeMaterno");
            return (Criteria) this;
        }

        public Criteria andApeMaternoNotBetween(String value1, String value2) {
            addCriterion("APE_MATERNO not between", value1, value2, "apeMaterno");
            return (Criteria) this;
        }

        public Criteria andApePaternoIsNull() {
            addCriterion("APE_PATERNO is null");
            return (Criteria) this;
        }

        public Criteria andApePaternoIsNotNull() {
            addCriterion("APE_PATERNO is not null");
            return (Criteria) this;
        }

        public Criteria andApePaternoEqualTo(String value) {
            addCriterion("APE_PATERNO =", value, "apePaterno");
            return (Criteria) this;
        }

        public Criteria andApePaternoNotEqualTo(String value) {
            addCriterion("APE_PATERNO <>", value, "apePaterno");
            return (Criteria) this;
        }

        public Criteria andApePaternoGreaterThan(String value) {
            addCriterion("APE_PATERNO >", value, "apePaterno");
            return (Criteria) this;
        }

        public Criteria andApePaternoGreaterThanOrEqualTo(String value) {
            addCriterion("APE_PATERNO >=", value, "apePaterno");
            return (Criteria) this;
        }

        public Criteria andApePaternoLessThan(String value) {
            addCriterion("APE_PATERNO <", value, "apePaterno");
            return (Criteria) this;
        }

        public Criteria andApePaternoLessThanOrEqualTo(String value) {
            addCriterion("APE_PATERNO <=", value, "apePaterno");
            return (Criteria) this;
        }

        public Criteria andApePaternoLike(String value) {
            addCriterion("APE_PATERNO like", value, "apePaterno");
            return (Criteria) this;
        }

        public Criteria andApePaternoNotLike(String value) {
            addCriterion("APE_PATERNO not like", value, "apePaterno");
            return (Criteria) this;
        }

        public Criteria andApePaternoIn(List<String> values) {
            addCriterion("APE_PATERNO in", values, "apePaterno");
            return (Criteria) this;
        }

        public Criteria andApePaternoNotIn(List<String> values) {
            addCriterion("APE_PATERNO not in", values, "apePaterno");
            return (Criteria) this;
        }

        public Criteria andApePaternoBetween(String value1, String value2) {
            addCriterion("APE_PATERNO between", value1, value2, "apePaterno");
            return (Criteria) this;
        }

        public Criteria andApePaternoNotBetween(String value1, String value2) {
            addCriterion("APE_PATERNO not between", value1, value2, "apePaterno");
            return (Criteria) this;
        }

        public Criteria andNumDocumentoIsNull() {
            addCriterion("NUM_DOCUMENTO is null");
            return (Criteria) this;
        }

        public Criteria andNumDocumentoIsNotNull() {
            addCriterion("NUM_DOCUMENTO is not null");
            return (Criteria) this;
        }

        public Criteria andNumDocumentoEqualTo(String value) {
            addCriterion("NUM_DOCUMENTO =", value, "numDocumento");
            return (Criteria) this;
        }

        public Criteria andNumDocumentoNotEqualTo(String value) {
            addCriterion("NUM_DOCUMENTO <>", value, "numDocumento");
            return (Criteria) this;
        }

        public Criteria andNumDocumentoGreaterThan(String value) {
            addCriterion("NUM_DOCUMENTO >", value, "numDocumento");
            return (Criteria) this;
        }

        public Criteria andNumDocumentoGreaterThanOrEqualTo(String value) {
            addCriterion("NUM_DOCUMENTO >=", value, "numDocumento");
            return (Criteria) this;
        }

        public Criteria andNumDocumentoLessThan(String value) {
            addCriterion("NUM_DOCUMENTO <", value, "numDocumento");
            return (Criteria) this;
        }

        public Criteria andNumDocumentoLessThanOrEqualTo(String value) {
            addCriterion("NUM_DOCUMENTO <=", value, "numDocumento");
            return (Criteria) this;
        }

        public Criteria andNumDocumentoLike(String value) {
            addCriterion("NUM_DOCUMENTO like", value, "numDocumento");
            return (Criteria) this;
        }

        public Criteria andNumDocumentoNotLike(String value) {
            addCriterion("NUM_DOCUMENTO not like", value, "numDocumento");
            return (Criteria) this;
        }

        public Criteria andNumDocumentoIn(List<String> values) {
            addCriterion("NUM_DOCUMENTO in", values, "numDocumento");
            return (Criteria) this;
        }

        public Criteria andNumDocumentoNotIn(List<String> values) {
            addCriterion("NUM_DOCUMENTO not in", values, "numDocumento");
            return (Criteria) this;
        }

        public Criteria andNumDocumentoBetween(String value1, String value2) {
            addCriterion("NUM_DOCUMENTO between", value1, value2, "numDocumento");
            return (Criteria) this;
        }

        public Criteria andNumDocumentoNotBetween(String value1, String value2) {
            addCriterion("NUM_DOCUMENTO not between", value1, value2, "numDocumento");
            return (Criteria) this;
        }

        public Criteria andEmailUsuarioIsNull() {
            addCriterion("EMAIL_USUARIO is null");
            return (Criteria) this;
        }

        public Criteria andEmailUsuarioIsNotNull() {
            addCriterion("EMAIL_USUARIO is not null");
            return (Criteria) this;
        }

        public Criteria andEmailUsuarioEqualTo(String value) {
            addCriterion("EMAIL_USUARIO =", value, "emailUsuario");
            return (Criteria) this;
        }

        public Criteria andEmailUsuarioNotEqualTo(String value) {
            addCriterion("EMAIL_USUARIO <>", value, "emailUsuario");
            return (Criteria) this;
        }

        public Criteria andEmailUsuarioGreaterThan(String value) {
            addCriterion("EMAIL_USUARIO >", value, "emailUsuario");
            return (Criteria) this;
        }

        public Criteria andEmailUsuarioGreaterThanOrEqualTo(String value) {
            addCriterion("EMAIL_USUARIO >=", value, "emailUsuario");
            return (Criteria) this;
        }

        public Criteria andEmailUsuarioLessThan(String value) {
            addCriterion("EMAIL_USUARIO <", value, "emailUsuario");
            return (Criteria) this;
        }

        public Criteria andEmailUsuarioLessThanOrEqualTo(String value) {
            addCriterion("EMAIL_USUARIO <=", value, "emailUsuario");
            return (Criteria) this;
        }

        public Criteria andEmailUsuarioLike(String value) {
            addCriterion("EMAIL_USUARIO like", value, "emailUsuario");
            return (Criteria) this;
        }

        public Criteria andEmailUsuarioNotLike(String value) {
            addCriterion("EMAIL_USUARIO not like", value, "emailUsuario");
            return (Criteria) this;
        }

        public Criteria andEmailUsuarioIn(List<String> values) {
            addCriterion("EMAIL_USUARIO in", values, "emailUsuario");
            return (Criteria) this;
        }

        public Criteria andEmailUsuarioNotIn(List<String> values) {
            addCriterion("EMAIL_USUARIO not in", values, "emailUsuario");
            return (Criteria) this;
        }

        public Criteria andEmailUsuarioBetween(String value1, String value2) {
            addCriterion("EMAIL_USUARIO between", value1, value2, "emailUsuario");
            return (Criteria) this;
        }

        public Criteria andEmailUsuarioNotBetween(String value1, String value2) {
            addCriterion("EMAIL_USUARIO not between", value1, value2, "emailUsuario");
            return (Criteria) this;
        }

        public Criteria andNumTelefonoIsNull() {
            addCriterion("NUM_TELEFONO is null");
            return (Criteria) this;
        }

        public Criteria andNumTelefonoIsNotNull() {
            addCriterion("NUM_TELEFONO is not null");
            return (Criteria) this;
        }

        public Criteria andNumTelefonoEqualTo(String value) {
            addCriterion("NUM_TELEFONO =", value, "numTelefono");
            return (Criteria) this;
        }

        public Criteria andNumTelefonoNotEqualTo(String value) {
            addCriterion("NUM_TELEFONO <>", value, "numTelefono");
            return (Criteria) this;
        }

        public Criteria andNumTelefonoGreaterThan(String value) {
            addCriterion("NUM_TELEFONO >", value, "numTelefono");
            return (Criteria) this;
        }

        public Criteria andNumTelefonoGreaterThanOrEqualTo(String value) {
            addCriterion("NUM_TELEFONO >=", value, "numTelefono");
            return (Criteria) this;
        }

        public Criteria andNumTelefonoLessThan(String value) {
            addCriterion("NUM_TELEFONO <", value, "numTelefono");
            return (Criteria) this;
        }

        public Criteria andNumTelefonoLessThanOrEqualTo(String value) {
            addCriterion("NUM_TELEFONO <=", value, "numTelefono");
            return (Criteria) this;
        }

        public Criteria andNumTelefonoLike(String value) {
            addCriterion("NUM_TELEFONO like", value, "numTelefono");
            return (Criteria) this;
        }

        public Criteria andNumTelefonoNotLike(String value) {
            addCriterion("NUM_TELEFONO not like", value, "numTelefono");
            return (Criteria) this;
        }

        public Criteria andNumTelefonoIn(List<String> values) {
            addCriterion("NUM_TELEFONO in", values, "numTelefono");
            return (Criteria) this;
        }

        public Criteria andNumTelefonoNotIn(List<String> values) {
            addCriterion("NUM_TELEFONO not in", values, "numTelefono");
            return (Criteria) this;
        }

        public Criteria andNumTelefonoBetween(String value1, String value2) {
            addCriterion("NUM_TELEFONO between", value1, value2, "numTelefono");
            return (Criteria) this;
        }

        public Criteria andNumTelefonoNotBetween(String value1, String value2) {
            addCriterion("NUM_TELEFONO not between", value1, value2, "numTelefono");
            return (Criteria) this;
        }

        public Criteria andFecRegistroIsNull() {
            addCriterion("FEC_REGISTRO is null");
            return (Criteria) this;
        }

        public Criteria andFecRegistroIsNotNull() {
            addCriterion("FEC_REGISTRO is not null");
            return (Criteria) this;
        }

        public Criteria andFecRegistroEqualTo(Date value) {
            addCriterionForJDBCDate("FEC_REGISTRO =", value, "fecRegistro");
            return (Criteria) this;
        }

        public Criteria andFecRegistroNotEqualTo(Date value) {
            addCriterionForJDBCDate("FEC_REGISTRO <>", value, "fecRegistro");
            return (Criteria) this;
        }

        public Criteria andFecRegistroGreaterThan(Date value) {
            addCriterionForJDBCDate("FEC_REGISTRO >", value, "fecRegistro");
            return (Criteria) this;
        }

        public Criteria andFecRegistroGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("FEC_REGISTRO >=", value, "fecRegistro");
            return (Criteria) this;
        }

        public Criteria andFecRegistroLessThan(Date value) {
            addCriterionForJDBCDate("FEC_REGISTRO <", value, "fecRegistro");
            return (Criteria) this;
        }

        public Criteria andFecRegistroLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("FEC_REGISTRO <=", value, "fecRegistro");
            return (Criteria) this;
        }

        public Criteria andFecRegistroIn(List<Date> values) {
            addCriterionForJDBCDate("FEC_REGISTRO in", values, "fecRegistro");
            return (Criteria) this;
        }

        public Criteria andFecRegistroNotIn(List<Date> values) {
            addCriterionForJDBCDate("FEC_REGISTRO not in", values, "fecRegistro");
            return (Criteria) this;
        }

        public Criteria andFecRegistroBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("FEC_REGISTRO between", value1, value2, "fecRegistro");
            return (Criteria) this;
        }

        public Criteria andFecRegistroNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("FEC_REGISTRO not between", value1, value2, "fecRegistro");
            return (Criteria) this;
        }

        public Criteria andFecModificacionIsNull() {
            addCriterion("FEC_MODIFICACION is null");
            return (Criteria) this;
        }

        public Criteria andFecModificacionIsNotNull() {
            addCriterion("FEC_MODIFICACION is not null");
            return (Criteria) this;
        }

        public Criteria andFecModificacionEqualTo(Date value) {
            addCriterionForJDBCDate("FEC_MODIFICACION =", value, "fecModificacion");
            return (Criteria) this;
        }

        public Criteria andFecModificacionNotEqualTo(Date value) {
            addCriterionForJDBCDate("FEC_MODIFICACION <>", value, "fecModificacion");
            return (Criteria) this;
        }

        public Criteria andFecModificacionGreaterThan(Date value) {
            addCriterionForJDBCDate("FEC_MODIFICACION >", value, "fecModificacion");
            return (Criteria) this;
        }

        public Criteria andFecModificacionGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("FEC_MODIFICACION >=", value, "fecModificacion");
            return (Criteria) this;
        }

        public Criteria andFecModificacionLessThan(Date value) {
            addCriterionForJDBCDate("FEC_MODIFICACION <", value, "fecModificacion");
            return (Criteria) this;
        }

        public Criteria andFecModificacionLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("FEC_MODIFICACION <=", value, "fecModificacion");
            return (Criteria) this;
        }

        public Criteria andFecModificacionIn(List<Date> values) {
            addCriterionForJDBCDate("FEC_MODIFICACION in", values, "fecModificacion");
            return (Criteria) this;
        }

        public Criteria andFecModificacionNotIn(List<Date> values) {
            addCriterionForJDBCDate("FEC_MODIFICACION not in", values, "fecModificacion");
            return (Criteria) this;
        }

        public Criteria andFecModificacionBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("FEC_MODIFICACION between", value1, value2, "fecModificacion");
            return (Criteria) this;
        }

        public Criteria andFecModificacionNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("FEC_MODIFICACION not between", value1, value2, "fecModificacion");
            return (Criteria) this;
        }

        public Criteria andUsuRegistroIsNull() {
            addCriterion("USU_REGISTRO is null");
            return (Criteria) this;
        }

        public Criteria andUsuRegistroIsNotNull() {
            addCriterion("USU_REGISTRO is not null");
            return (Criteria) this;
        }

        public Criteria andUsuRegistroEqualTo(String value) {
            addCriterion("USU_REGISTRO =", value, "usuRegistro");
            return (Criteria) this;
        }

        public Criteria andUsuRegistroNotEqualTo(String value) {
            addCriterion("USU_REGISTRO <>", value, "usuRegistro");
            return (Criteria) this;
        }

        public Criteria andUsuRegistroGreaterThan(String value) {
            addCriterion("USU_REGISTRO >", value, "usuRegistro");
            return (Criteria) this;
        }

        public Criteria andUsuRegistroGreaterThanOrEqualTo(String value) {
            addCriterion("USU_REGISTRO >=", value, "usuRegistro");
            return (Criteria) this;
        }

        public Criteria andUsuRegistroLessThan(String value) {
            addCriterion("USU_REGISTRO <", value, "usuRegistro");
            return (Criteria) this;
        }

        public Criteria andUsuRegistroLessThanOrEqualTo(String value) {
            addCriterion("USU_REGISTRO <=", value, "usuRegistro");
            return (Criteria) this;
        }

        public Criteria andUsuRegistroLike(String value) {
            addCriterion("USU_REGISTRO like", value, "usuRegistro");
            return (Criteria) this;
        }

        public Criteria andUsuRegistroNotLike(String value) {
            addCriterion("USU_REGISTRO not like", value, "usuRegistro");
            return (Criteria) this;
        }

        public Criteria andUsuRegistroIn(List<String> values) {
            addCriterion("USU_REGISTRO in", values, "usuRegistro");
            return (Criteria) this;
        }

        public Criteria andUsuRegistroNotIn(List<String> values) {
            addCriterion("USU_REGISTRO not in", values, "usuRegistro");
            return (Criteria) this;
        }

        public Criteria andUsuRegistroBetween(String value1, String value2) {
            addCriterion("USU_REGISTRO between", value1, value2, "usuRegistro");
            return (Criteria) this;
        }

        public Criteria andUsuRegistroNotBetween(String value1, String value2) {
            addCriterion("USU_REGISTRO not between", value1, value2, "usuRegistro");
            return (Criteria) this;
        }

        public Criteria andUsuModificacionIsNull() {
            addCriterion("USU_MODIFICACION is null");
            return (Criteria) this;
        }

        public Criteria andUsuModificacionIsNotNull() {
            addCriterion("USU_MODIFICACION is not null");
            return (Criteria) this;
        }

        public Criteria andUsuModificacionEqualTo(String value) {
            addCriterion("USU_MODIFICACION =", value, "usuModificacion");
            return (Criteria) this;
        }

        public Criteria andUsuModificacionNotEqualTo(String value) {
            addCriterion("USU_MODIFICACION <>", value, "usuModificacion");
            return (Criteria) this;
        }

        public Criteria andUsuModificacionGreaterThan(String value) {
            addCriterion("USU_MODIFICACION >", value, "usuModificacion");
            return (Criteria) this;
        }

        public Criteria andUsuModificacionGreaterThanOrEqualTo(String value) {
            addCriterion("USU_MODIFICACION >=", value, "usuModificacion");
            return (Criteria) this;
        }

        public Criteria andUsuModificacionLessThan(String value) {
            addCriterion("USU_MODIFICACION <", value, "usuModificacion");
            return (Criteria) this;
        }

        public Criteria andUsuModificacionLessThanOrEqualTo(String value) {
            addCriterion("USU_MODIFICACION <=", value, "usuModificacion");
            return (Criteria) this;
        }

        public Criteria andUsuModificacionLike(String value) {
            addCriterion("USU_MODIFICACION like", value, "usuModificacion");
            return (Criteria) this;
        }

        public Criteria andUsuModificacionNotLike(String value) {
            addCriterion("USU_MODIFICACION not like", value, "usuModificacion");
            return (Criteria) this;
        }

        public Criteria andUsuModificacionIn(List<String> values) {
            addCriterion("USU_MODIFICACION in", values, "usuModificacion");
            return (Criteria) this;
        }

        public Criteria andUsuModificacionNotIn(List<String> values) {
            addCriterion("USU_MODIFICACION not in", values, "usuModificacion");
            return (Criteria) this;
        }

        public Criteria andUsuModificacionBetween(String value1, String value2) {
            addCriterion("USU_MODIFICACION between", value1, value2, "usuModificacion");
            return (Criteria) this;
        }

        public Criteria andUsuModificacionNotBetween(String value1, String value2) {
            addCriterion("USU_MODIFICACION not between", value1, value2, "usuModificacion");
            return (Criteria) this;
        }

        public Criteria andEstadoIsNull() {
            addCriterion("ESTADO is null");
            return (Criteria) this;
        }

        public Criteria andEstadoIsNotNull() {
            addCriterion("ESTADO is not null");
            return (Criteria) this;
        }

        public Criteria andEstadoEqualTo(String value) {
            addCriterion("ESTADO =", value, "estado");
            return (Criteria) this;
        }

        public Criteria andEstadoNotEqualTo(String value) {
            addCriterion("ESTADO <>", value, "estado");
            return (Criteria) this;
        }

        public Criteria andEstadoGreaterThan(String value) {
            addCriterion("ESTADO >", value, "estado");
            return (Criteria) this;
        }

        public Criteria andEstadoGreaterThanOrEqualTo(String value) {
            addCriterion("ESTADO >=", value, "estado");
            return (Criteria) this;
        }

        public Criteria andEstadoLessThan(String value) {
            addCriterion("ESTADO <", value, "estado");
            return (Criteria) this;
        }

        public Criteria andEstadoLessThanOrEqualTo(String value) {
            addCriterion("ESTADO <=", value, "estado");
            return (Criteria) this;
        }

        public Criteria andEstadoLike(String value) {
            addCriterion("ESTADO like", value, "estado");
            return (Criteria) this;
        }

        public Criteria andEstadoNotLike(String value) {
            addCriterion("ESTADO not like", value, "estado");
            return (Criteria) this;
        }

        public Criteria andEstadoIn(List<String> values) {
            addCriterion("ESTADO in", values, "estado");
            return (Criteria) this;
        }

        public Criteria andEstadoNotIn(List<String> values) {
            addCriterion("ESTADO not in", values, "estado");
            return (Criteria) this;
        }

        public Criteria andEstadoBetween(String value1, String value2) {
            addCriterion("ESTADO between", value1, value2, "estado");
            return (Criteria) this;
        }

        public Criteria andEstadoNotBetween(String value1, String value2) {
            addCriterion("ESTADO not between", value1, value2, "estado");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}